package org.zn.note.jdk.thread.util.concurrent;

import org.zn.note.common.util.ThreadUtil;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @ClassName TestRejectedExecutionHandler
 * @Author zn
 * @Date 2019/3/28 14:52
 **/
public class TestRejectedExecutionHandler implements RejectedExecutionHandler {
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        ThreadUtil.printThread("rejectedExecution");
    }
}
